<?php
print ('<select');
print (' id="'.Y('Module.List.Editor.Form.name').'"');
print (' class="Form '.Y('Module.List.Editor.Form.name').' select_appendable"');
print (' name="'.Y('Module.List.Editor.Form.name').'"');
print (' tabindex="'.Y('Module.List.Editor.Form.TabIndex').'"');
print ('>');
print ('<option value="">--選択なし--</option>');

$DefFlg = true;
foreach ((array)Y('Module.List.Editor.getOptions', Y('Module.List.Editor.Form.Option')) as $Key=>$Val) {
	print ('<option value="'.$Key.'"');
	if ($DefFlg && Y('Module.List.Editor.Form.Value') == $Key) {
		print (' selected="selected"');
		$DefFlg = false;
	}
	print ('>');
	print ($Val);
	print ('</option>');
}

print ('</select>');
print ('<input type="button" id="'.Y('Module.List.Editor.Form.name').'" class="'.Y('Module.List.Editor.Form.name').' select_appendable_button" value="項目追加" />');
?>
